<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>

    <script>
        function register(){
            window.location.href = "/user/register/"
        }
    </script>
</head>
<body>
    <form action="/user/login_check/" method="post">
        {% csrf_token %}
        <p>
            <label>用户名：</label><input type="text" name="username"/>
        </p>
        <p>
            <label>密&emsp;码：</label><input type="password" name="password"/>
        </p>
        <p>
            &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;<input type="submit" value="登录"/>
        </p>
        <p>
            &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;<input type="button" value="注册" onclick="register()">
        </p>
    </form>
</body>
</html>